package util.exception;

import java.io.PrintWriter;
import java.io.StringWriter;

public class ExceptionUtil {
	
	public static String getStackTrace(Exception e) {
        //StackTraceElement[] lista = e.getStackTrace();
        StringWriter writer = new StringWriter();
        PrintWriter printWriter = new PrintWriter( writer );
        e.printStackTrace( printWriter );
        printWriter.flush();
        return writer.toString();               
    }
}
